package com.anolesoft.amljmes.foreknow.mapper;

import com.anolesoft.amljmes.foreknow.bo.MesBzzPtdmx;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface MesBzzPtdmxMapper {
    /**
     * 点击铅封保留查询
     * @param
     * @return
     */
    List<MesBzzPtdmx> querylist(Map map);

    /**
     * 点击铅封保留查询连接铅封保留明细表
     * @param
     * @return
     */
    List<MesBzzPtdmx> querylist1(Map map);

    /**
     * 判断铅封保留单明细是否含有未撤回数据
     */
    @Select("select count(objuid) from MES_BZZ_QFBLDMX where PTDMX_UID = #{id} and state = 0")
    int count(String id);
}
